<!--div id="tablecontent" class="col-md-12"-->						
	<div class="form-group">
		<div class="table-responsive">
			<table class="table table-bordered table-condensed table-striped" style="background:#f9f9f9;">
				<thead>
					<tr>
						<th class="tblhead" style="width:5%;text-align:center;">No</th>
						<th class="tblhead" style="width:15%;text-align:center;">Contract ID</th>
						<th class="tblhead" style="width:15%;text-align:center;">Contract No</th>
						<th class="tblhead" style="width:15%;text-align:center;">Contract Title</th>
						<th class="tblhead" style="width:15%;text-align:center;">Period Date</th>
						<th class="tblhead" style="width:10%;text-align:center;">File Name</th>
						<th class="tblhead" style="width:15%;text-align:center;">Vendor Name</th>
						<th class="tblhead" style="width:10%;text-align:center;">Action</th>
					</tr>
				</thead>
				<tbody>
					<?php
					if (empty($list_data)) {
						?>
						<tr><td colspan="9" style="text-align:center">No Data Available</td></tr>
						<?php
					} else {
						foreach ($list_data as $row) {
							?>
							<tr>
								<?php
								$doc_id		= $row["DOC_ID"];
								$doc_induk	= $row["DOC_INDUK"];
								
								$doc_no		= $row["DOC_CONTRACT_NO"];
								$doc_title 	= $row["DOC_TITLE"];
								$start_date	= $row["DOC_SDATE"];
								$end_date 	= $row["DOC_EDATE"];
								$doc_file	= $row["DOC_FILE"];
								$vendor		= $row["VENDOR_NAME"];												
								?>

								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;"><?php echo $row["RECNUM"]; ?>.</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $doc_id; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $doc_no; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;word-warp:break-word;"><?php echo $doc_title; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;word-warp:break-word;">
								<?php echo $start_date.' <b>s/d</b> '.$end_date; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $doc_file; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;word-warp:break-word;"><?php echo $vendor; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<a class="btn btn-sm btn-info" href="#" onclick="edit_data('<?php echo $doc_id; ?>','<?php echo $doc_induk; ?>','Revise');">
										<!--span class="glyphicon glyphicon-cog"></span--> Revise</a>
									<a class="btn btn-sm btn-warning" href="#" onclick="edit_data('<?php echo $doc_id; ?>','<?php echo $doc_induk; ?>','Edit');">
										<!--span class="glyphicon glyphicon-edit"></span--> Edit</a>
									<a class="btn btn-sm btn-danger" href="#" onclick="delete_data('<?php echo $doc_id; ?>','<?php echo $doc_induk; ?>');">
										<!--span class="glyphicon glyphicon-remove"></span--> Delete</a>
								</td>
							</tr>
							<?php
						}
					}
					?>
				</tbody>
			</table>
		</div>
	</div>
	<div class="form-group">
		<div id="mypaging">
			<?php
			echo $paging;
			echo $jump_page;
			echo $ipp;
			?>
		</div>								
	</div>
<!--/div-->